package com.hqyj.zss.service.impl;

import com.hqyj.zss.dao.GetFoodDao;
import com.hqyj.zss.pojo.Menus;
import com.hqyj.zss.service.GetFoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GetFoodImpl implements GetFoodService {
    private GetFoodDao getFoodDao;

    @Autowired
    public void setGetFoodDao(GetFoodDao getFoodDao) {
        this.getFoodDao = getFoodDao;
    }

    @Override
    public List<Menus> getStapleFood(String name) {
        List<Menus> list = getFoodDao.getStapleFood(name);
        return list;
    }

    @Override
    public List<Menus> getStreetFood(String name) {
        List<Menus> list = getFoodDao.getStreetFood(name);
        return list;
    }

    @Override
    public List<Menus> getDrink(String name) {
        List<Menus> list = getFoodDao.getDrink(name);
        return list;
    }
}
